From: Richard M. Stallman Date: Wed, 26 May 1993 20:33:32 +0000 (+0000) Subject: (x_set_cursor_type): If arg not recognized, use box cursor. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95926 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=15ab234bf9d52ebf509c12d15bcd2c736d9af4c9;p=emacs.git (x_set_cursor_type): If arg not recognized, use box cursor. --- diff --git a/src/xfns.c b/src/xfns.c index 1d08900079a..b073b9161c2 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -758,11 +758,18 @@ x_set_cursor_type (f, arg, oldval) { if (EQ (arg, Qbar)) FRAME_DESIRED_CURSOR (f) = bar_cursor; - else if (EQ (arg, Qbox)) - FRAME_DESIRED_CURSOR (f) = filled_box_cursor; + else +#if 0 + if (EQ (arg, Qbox)) +#endif + FRAME_DESIRED_CURSOR (f) = filled_box_cursor; + /* Error messages commented out because people have trouble fixing + .Xdefaults with Emacs, when it has something bad in it. */ +#if 0 else error ("the `cursor-type' frame parameter should be either `bar' or `box'"); +#endif /* Make sure the cursor gets redrawn. This is overkill, but how often do people change cursor types? */